import { default } from '../dragVerify/dragVerify.vue';
<!--
 * @Author: wujian
 * @Date: 2023-04-11 09:58:18
 * @LastEditors: wujian
 * @LastEditTime: 2023-04-19 10:48:27
 * @FilePath: \scada\src\components\card\wj-card.vue
 * @Description: 封装table
 * @email: 281919544@qq.com
 * Copyright (c) 2023 by wujian, All Rights Reserved. 
-->
<template>
	<el-card v-bind="$attrs" class="wj-card" :class="hasBorder ? '' : 'no-border'">
		<template #default>
			<slot></slot>
		</template>
	</el-card>
</template>

<script setup lang="ts">
defineProps({
	hasBorder: {
		type: Boolean,
		default: () => {
			return false;
		},
	},
});
</script>

<style lang="scss" scoped>
.wj-card :deep(.el-card__body) {
	height: 100%;
}
.el-card.no-border {
	border: none;
}
</style>
